import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/router/premission.js'

// import '@/assets/styles/border/border.css'
// import '@/assets/styles/reset.css'
import SvgIcon from '@/icons'
// 国际化中文
import zhCn from 'element-plus/es/locale/lang/zh-cn'

const app = createApp(App)

SvgIcon(app);

app.use(ElementPlus, {
    locale: zhCn,
})

//element-plus icon注册
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(store).use(router).use(ElementPlus).mount('#app')
